/*
 *暑期JAVA学习 版权所有 2022-2025 
 */
package com.ychs.corejava.lesson4;

import java.util.Scanner;

/**
 *测试Calc类
 * @author  menlu
 * @version 1.0
 */
public class CalcTest {

	/**
	 * 
	 */
	public static void main(String[] args) {
		Calc calc = new Calc();
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入第一个数字：");
		int num1 = scanner.nextInt();
		
		System.out.println("请输入第二个数字：");
		int num2 = scanner.nextInt();
		
		int addResult = calc.add(num1, num2);
		System.out.print("加法结果:" + addResult);
		
		int sulResult = calc.sub(num1, num2);
		System.out.print("减法结果:" + sulResult);
		
		int mulResult = calc.mul(num1, num2);
		System.out.print("乘法结果:" + mulResult);
		
		double divResult = calc.div(num1, num2);
		System.out.print("除法结果:" + divResult);
		
		int modResult = calc.mod(num1, num2);
		System.out.print("求余结果:"+addResult);
		
		System.out.print(3+2+"China");
		System.out.print("China"+3+2);
		
//		任务：用户输入一个整数，判断其是否是偶数
		
		System.out.print(3 == 2);//布尔型
		
		System.out.print((int)(Math.random() *50));//随机数
	}

}
